package com.fz.us.oa.core.service.com.impl;

import com.fz.us.admin.company.dao.BaseFlowDao;
import com.fz.us.admin.company.entity.User;
import com.fz.us.admin.company.service.impl.BaseFlowServiceImpl;
import com.fz.us.oa.core.dao.com.ChatLogDao;
import com.fz.us.oa.core.entity.com.ChatLog;
import com.fz.us.oa.core.service.com.ChatLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZhuChunXiao on 2017/7/11.
 */
@Service
public class ChatLogServiceImpl extends BaseFlowServiceImpl<ChatLog, String> implements ChatLogService {
    @Autowired
    ChatLogDao chatLogDao;

    @Override
    public BaseFlowDao<ChatLog, String> getBaseFlowDao() {
        return chatLogDao;
    }

    @Override
    public List<ChatLog> findChatLogFriend(User own, User friend) {
        return chatLogDao.findChatLogFriend(own,friend);
    }

    @Override
    public List<ChatLog> findGroupChatLog(String groupId) {
        return chatLogDao.findGroupChatLog(groupId);
    }
}
